/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package idoms;

import java.util.Date;

/**
 *
 * @author Ngocvan
 */
public class Values implements Cloneable{
    String abc;
    double foo;
    int[] bars;
    Date hired;
    
    @Override
    public Values clone() throws CloneNotSupportedException{
//        try {
            Values result = (Values) super.clone();
            if (bars == null) {
                result.bars = null;
            } else{
                result.bars = this.bars.clone();
            }
            if (hired == null){
                result.hired = null;
            }else{
                result.hired = (Date) this.hired.clone();
            }
            return result;
//        } catch (Exception e) {//Impossible
//            throw new AssertionError(e);// what does this mean
//        }
//        return null;
    }
}
